package com.maven.plugins.mybatis.core;
/**
 * 主键id
 * @author : fredia
 * @email : trumpey@163.com
 * @since : 2017年11月22日
 * @version : v0.0.1
 */
public class PrimariKey {
	private String columnName;
	private String propertyName;
	private String jdbcType;
	private boolean identity;

	public PrimariKey(String columnName, boolean identity) {
		this.columnName = columnName;
		this.identity = identity;
	}

	public String getColumnName() {
		return this.columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public boolean isIdentity() {
		return this.identity;
	}

	public void setIdentity(boolean identity) {
		this.identity = identity;
	}

	public String getJdbcType() {
		return this.jdbcType;
	}

	public void setJdbcType(String jdbcType) {
		this.jdbcType = jdbcType;
	}

	public String getPropertyName() {
		return this.propertyName;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	@Override
	public String toString() {
		return "PrimariKey [columnName=" + columnName + ", propertyName=" + propertyName
				+ ", jdbcType=" + jdbcType + ", identity=" + identity + "]";
	}
	
	
}
